package br.hm.telephoneoperator;

import java.util.Date;

/**
 * @author  Helmut
 */
public class PhonePortabilityDetail {

	/**
	 * @uml.property  name="phone"
	 * @uml.associationEnd  
	 */
	private Phone phone;
	/**
	 * @uml.property  name="phoneOperator"
	 * @uml.associationEnd  
	 */
	private PhoneOperator phoneOperator;
	/**
	 * @uml.property  name="datePortability"
	 */
	private Date DatePortability;

	/**
	 * @return
	 * @uml.property  name="datePortability"
	 */
	public Date getDatePortability() {
		return DatePortability;
	}

	/**
	 * @param datePortability
	 * @uml.property  name="datePortability"
	 */
	public void setDatePortability(Date datePortability) {
		DatePortability = datePortability;
	}

	/**
	 * @return
	 * @uml.property  name="phone"
	 */
	public Phone getPhone() {
		return phone;
	}

	/**
	 * @param phone
	 * @uml.property  name="phone"
	 */
	public void setPhone(Phone phone) {
		this.phone = phone;
	}

	/**
	 * @return
	 * @uml.property  name="phoneOperator"
	 */
	public PhoneOperator getPhoneOperator() {
		return phoneOperator;
	}

	/**
	 * @param phoneOperator
	 * @uml.property  name="phoneOperator"
	 */
	public void setPhoneOperator(PhoneOperator phoneOperator) {
		this.phoneOperator = phoneOperator;
	}	

	@Override
	public String toString() {
		
		return "["+phone.toString() +" - "+ phoneOperator.toString()+" - " + getDatePortability()+ "]";
	}
}
